/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Application;

import java.util.Comparator;

/**
 *
 * @author Laurent
 */
public class ComparateurScore implements Comparator{

    public int compare(Object score1, Object score2){

        if(((Score)score1).points > ((Score)score2).points ){
            return -1;
        }else if(((Score)score1).points < ((Score)score2).points ){
            return 1;
        }else{
            return 0;
        }

    }
}
